package com.tripupdater.controller
{
	import com.tripupdater.command.*;
	import com.tripupdater.type.CommandType;
	import com.turner.caf.control.CAFEventDispatcher;
	import com.turner.caf.control.FrontController;

	public class Controller extends FrontController
	{
		public function Controller(eventDispatcher:CAFEventDispatcher)
		{
			super(eventDispatcher);
			
			addCommands();
		}
		
		private function addCommands():void
		{
			addCommand(CommandType.GET_TWITTER_UPDATE, GetTwitterUpdateCommand);
			addCommand(CommandType.GET_SKYPE_STATUS, GetSkypeStatusCommand);
			addCommand(CommandType.LOAD_CALENDAR, LoadCalendarCommand);
			addCommand(CommandType.LOAD_APP_DATA, LoadAppDataCommand);
		}
		
	}
}